import { Component } from "vue";

import Home from "@/view/Home.vue";


const routes: Array<RouteOption> = [
    {
        path: "/",
        redirect: "/Home",
        component: {} as Component
    },
    //引入Home
    {
        path: "/Home",
        name: "Home",
        component: Home,
    },
]

interface RouteOption {
    path: string;
    name?: string;
    component: Component;
    redirect?: string;
}

export default routes;
